.class public Lcom/estrongs/android/pop/utils/o;
.super Ljava/lang/Object;
.source "ESSystemBarHelper.java"


# direct methods
.method public static a(Landroid/app/Activity;)V
    .locals 2

    .line 6
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060102

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    .line 7
    invoke-static {p0, v0}, Lcom/estrongs/android/pop/utils/o;->a(Landroid/app/Activity;I)V

    return-void
.end method

.method public static a(Landroid/app/Activity;I)V
    .locals 3

    .line 8
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/high16 v1, 0x4000000

    const/16 v2, 0x15

    if-lt v0, v2, :cond_0

    .line 9
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/high16 v2, -0x80000000

    invoke-virtual {v0, v2}, Landroid/view/Window;->addFlags(I)V

    .line 10
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    .line 11
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    invoke-virtual {p0, p1}, Landroid/view/Window;->setStatusBarColor(I)V

    goto :goto_0

    :cond_0
    const/16 p1, 0x13

    if-lt v0, p1, :cond_1

    .line 12
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/view/Window;->addFlags(I)V

    const p1, 0x1020002

    .line 13
    invoke-virtual {p0, p1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/view/ViewGroup;

    const/4 p1, 0x0

    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/view/ViewGroup;

    const/4 p1, 0x1

    .line 14
    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setFitsSystemWindows(Z)V

    .line 15
    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setClipToPadding(Z)V

    :cond_1
    :goto_0
    return-void
.end method

.method private static a(Landroid/app/Activity;Z)V
    .locals 2
    .annotation build Landroid/annotation/TargetApi;
        value = 0x13
    .end annotation

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    .line 2
    invoke-virtual {p0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    if-eqz p1, :cond_0

    .line 3
    iget p1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    const/high16 v1, 0x4000000

    or-int/2addr p1, v1

    iput p1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    goto :goto_0

    .line 4
    :cond_0
    iget p1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    const v1, -0x4000001

    and-int/2addr p1, v1

    iput p1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    .line 5
    :goto_0
    invoke-virtual {p0, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    return-void
.end method

.method public static a(Landroidx/appcompat/app/AppCompatActivity;)V
    .locals 6

    .line 16
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    .line 17
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const/4 v2, 0x1

    const v3, 0x7f060102

    if-eqz v0, :cond_0

    .line 18
    new-instance v4, Landroid/graphics/drawable/ColorDrawable;

    invoke-virtual {v1, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v5

    invoke-direct {v4, v5}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v0, v4}, Landroidx/appcompat/app/ActionBar;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 19
    invoke-virtual {v0, v2}, Landroidx/appcompat/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V

    const v4, 0x7f0809cb

    .line 20
    invoke-virtual {v0, v4}, Landroidx/appcompat/app/ActionBar;->setHomeAsUpIndicator(I)V

    .line 21
    :cond_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0x15

    if-lt v0, v4, :cond_1

    .line 22
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    invoke-virtual {v1, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p0, v0}, Landroid/view/Window;->setStatusBarColor(I)V

    goto :goto_0

    :cond_1
    const/16 v4, 0x13

    if-lt v0, v4, :cond_2

    .line 23
    invoke-static {p0, v2}, Lcom/estrongs/android/pop/utils/o;->a(Landroid/app/Activity;Z)V

    .line 24
    new-instance v0, Lcom/estrongs/android/pop/esclasses/o;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/esclasses/o;-><init>(Landroid/app/Activity;)V

    .line 25
    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/esclasses/o;->a(Z)V

    .line 26
    invoke-virtual {v1, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result p0

    invoke-virtual {v0, p0}, Lcom/estrongs/android/pop/esclasses/o;->a(I)V

    :cond_2
    :goto_0
    return-void
.end method

.method public static b(Landroid/app/Activity;)V
    .locals 3

    .line 1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x13

    if-lt v0, v1, :cond_1

    .line 2
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/b;->m()Z

    move-result v1

    if-eqz v1, :cond_1

    const v1, 0x7f060102

    .line 4
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    .line 5
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x15

    if-lt v1, v2, :cond_0

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    const/high16 v1, 0xc000000

    .line 7
    invoke-virtual {p0, v1}, Landroid/view/Window;->clearFlags(I)V

    .line 8
    invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x500

    invoke-virtual {v1, v2}, Landroid/view/View;->setSystemUiVisibility(I)V

    const/high16 v1, -0x80000000

    .line 9
    invoke-virtual {p0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 10
    invoke-virtual {p0, v0}, Landroid/view/Window;->setStatusBarColor(I)V

    goto :goto_0

    :cond_0
    const/4 v1, 0x1

    .line 11
    invoke-static {p0, v1}, Lcom/estrongs/android/pop/utils/o;->a(Landroid/app/Activity;Z)V

    .line 12
    new-instance v2, Lcom/estrongs/android/pop/esclasses/o;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/esclasses/o;-><init>(Landroid/app/Activity;)V

    .line 13
    invoke-virtual {v2, v1}, Lcom/estrongs/android/pop/esclasses/o;->a(Z)V

    .line 14
    invoke-virtual {v2, v0}, Lcom/estrongs/android/pop/esclasses/o;->a(I)V

    :cond_1
    :goto_0
    return-void
.end method

.method public static b(Landroid/app/Activity;I)V
    .locals 2

    .line 15
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x13

    if-lt v0, v1, :cond_1

    .line 16
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    .line 17
    invoke-virtual {v0}, Lcom/estrongs/android/ui/theme/b;->m()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 18
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_0

    .line 19
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    const/high16 v0, 0xc000000

    .line 20
    invoke-virtual {p0, v0}, Landroid/view/Window;->clearFlags(I)V

    .line 21
    invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x500

    invoke-virtual {v0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V

    const/high16 v0, -0x80000000

    .line 22
    invoke-virtual {p0, v0}, Landroid/view/Window;->addFlags(I)V

    .line 23
    invoke-virtual {p0, p1}, Landroid/view/Window;->setStatusBarColor(I)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    .line 24
    invoke-static {p0, v0}, Lcom/estrongs/android/pop/utils/o;->a(Landroid/app/Activity;Z)V

    .line 25
    new-instance v1, Lcom/estrongs/android/pop/esclasses/o;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/esclasses/o;-><init>(Landroid/app/Activity;)V

    .line 26
    invoke-virtual {v1, v0}, Lcom/estrongs/android/pop/esclasses/o;->a(Z)V

    .line 27
    invoke-virtual {v1, p1}, Lcom/estrongs/android/pop/esclasses/o;->a(I)V

    :cond_1
    :goto_0
    return-void
.end method
